#ifndef __TM1637_H
#define __TM1637_H

#include "stm32f1xx_hal.h"
extern unsigned char Digital_tube_code_table[];
extern unsigned char disp_num[];
#define SDA_GPIO_PORT    GPIOB
#define SCL_GPIO_PORT    GPIOB
#define SDA_Pin    		 GPIO_PIN_11
#define SCL_Pin    		 GPIO_PIN_10

#define AIP1637_W    	0x4C
#define AIP1637_R   	0x42
#define ADDRESS_PLUS   	0x40        //40 地址自加模式    
#define ADDRESS_FIXED 	0x44        //44 固定地址模式
#define DISPLAY_OFF 	0x80
#define DISPLAY_ON 	    0x88
void tm1637_init(void);
void tm1637_display_inc(void);
void digi_tube_disp(uint8_t address, uint8_t value);
void digi_tube_set_bri(unsigned char level);
void digi_tube_off(void);
#endif





